package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 工单节点类型枚举
 * @author 魏荣杰
 * @date 2019/4/1 14:15
 * @since v1.0
 * @version v1.0
 */
@Getter
public enum WorkOrderFlowNodeTypeEnum {
    /**
     *
     */
    NORMAL_NODE(0, "enum.workOrderFlowNodeType.name.normal_node"),
    ROB_NODE(1, "enum.workOrderFlowNodeType.name.rob_node"),
    ;

    private Integer code;

    private String name;

    WorkOrderFlowNodeTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
